package com.open.common.model;

import java.io.Serializable;

/**
 * @author dashu
 * @date 2025/1/2 18:29
 * @description 分页请求对象
 */
public class PageRequest<T> implements Serializable {
    private static final long serialVersionUID = 2496103014567437454L;

    private Page<T> page;

    private T model;

    public Page<T> getPage() {
        return page;
    }

    public void setPage(Page<T> page) {
        this.page = page;
    }

    public T getModel() {
        return model;
    }

    public void setModel(T model) {
        this.model = model;
    }

    public PageRequest() {
        super();
    }

    public PageRequest(Page<T> page, T model) {
        this.page = page;
        this.model = model;
    }

    @Override
    public String toString() {
        return "PageRequest{" +
                "page=" + page +
                ", model=" + model +
                '}';
    }
}